package com.hzvictory.hotel_system.service.Impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hzvictory.hotel_system.mapper.ProjectResourcesMapper;
import com.hzvictory.hotel_system.pojo.entity.ProjectResources;
import com.hzvictory.hotel_system.service.IProjectResourcesService;

/**
 * 项目资源URLService业务层处理
 *
 * @author hzvictory
 * @date 2025-08-11
 */
@Service
public class ProjectResourcesServiceImpl implements IProjectResourcesService
{
    @Autowired
    private ProjectResourcesMapper projectResourcesMapper;

    /**
     * 查询项目资源URL
     *
     * @param id 项目资源URL主键
     * @return 项目资源URL
     */
    @Override
    public ProjectResources selectProjectResourcesById(Long id)
    {
        return projectResourcesMapper.selectProjectResourcesById(id);
    }

    /**
     * 查询项目资源URL列表
     *
     * @param projectResources 项目资源URL
     * @return 项目资源URL
     */
    @Override
    public List<ProjectResources> selectProjectResourcesList(ProjectResources projectResources)
    {
        return projectResourcesMapper.selectProjectResourcesList(projectResources);
    }

    /**
     * 新增项目资源URL
     *
     * @param projectResources 项目资源URL
     * @return 结果
     */
    @Override
    public int insertProjectResources(ProjectResources projectResources)
    {
        return projectResourcesMapper.insertProjectResources(projectResources);
    }

    /**
     * 修改项目资源URL
     *
     * @param projectResources 项目资源URL
     * @return 结果
     */
    @Override
    public int updateProjectResources(ProjectResources projectResources)
    {
        return projectResourcesMapper.updateProjectResources(projectResources);
    }

    /**
     * 批量删除项目资源URL
     *
     * @param ids 需要删除的项目资源URL主键
     * @return 结果
     */
    @Override
    public int deleteProjectResourcesByIds(Long[] ids)
    {
        return projectResourcesMapper.deleteProjectResourcesByIds(ids);
    }

    /**
     * 删除项目资源URL信息
     *
     * @param id 项目资源URL主键
     * @return 结果
     */
    @Override
    public int deleteProjectResourcesById(Long id)
    {
        return projectResourcesMapper.deleteProjectResourcesById(id);
    }
}
